package com.xinchao.service;

import com.github.pagehelper.Page;
import com.xinchao.model.DeviceUpgradeMessage;
import com.xinchao.model.vo.DeviceUpgradeMessageVO;

/**
 * 终端升级消息
 *
 * @author linqiang
 * @date 2018-08-10 14:47
 */
public interface DeviceUpgradeMessageService {
    /**
     * 新增
     *
     * @param record 新增的数据
     * @return 影响行数
     */
    int insert(DeviceUpgradeMessage record);

    /**
     * 分页查询
     *
     * @param currentCity 当前城市
     * @param pageNum     当前页
     * @param pageSize    每页条数
     * @return Page<DeviceUpgradeMessage>
     */
    Page<DeviceUpgradeMessageVO> listByPage(String currentCity, Integer pageNum, Integer pageSize);
}